/**
 * 公共接口
 * */
const getColumnSettings = '/settings/column/all';
//取导航菜单
const getMenuUrl = 'menu/getMenusByLoginUser';
// 取系统配置
const getSystemSetting = '/settings/system/all';
/**
 * @url
 * @退出登录
 */
// 获取验证码
const captcha = '/auth/captcha';
// 获取加密公钥
const passwordPublicKey = '/auth/passwordPublicKey';
// 登录接口
// const login = '/auth/login';
const login = '/login';

// 登录退出接口
const logout = '/logout';
// cookie失效
const cookieMissUrl = '/login/sso';

// 获取文件传输域名
const serviceUrl = '/cluster/file-transfer/getService';

// 获取文件传输服务器状态
const getFileServerStatus = '/mng/isAvailable';
/**
 * @url
 * @获取登录人信息
 */
// 取登录人信息
const getUserUrl = '/system/session';

/**
 * 数据字典
 * //---------------------------------------------------------------------
 *
 * */
//查询字典列表
const dicFindList = 'dictionary/findList'
//根据id查询字典项
const dicgetDictListByDictId ='dictData/getDictListByDictIdForMng'
//保存数据字典
const dicSave = '/dictionary/save';
//保存字典值
const dicDataSave = '/dictData/save';
//新增保存字典值
const dicDataUpSave = '/dictData/update';
//删除字典值
const dicDatadelete ='/dictData/delete';
//删除数据字典
const dicDelete ='/dictionary/delete';

/**
 * @url
 * @系统配置
 */
//用户管理列表
const getUserList = '/userInfo/getUserList';
//角色下拉选数据
const roleSelect = '/role/getSystemRoleList';
//获取用户信息
const getUserById = '/userInfo/getUserById';
//修改用户角色
const updateUserRole = '/userInfo/updateSystemUser';
//添加用户
const saveSystemUser = '/userInfo/saveSystemUser';
// 获取证件类型
const getCredentialsTypeCandidates = '/userInfo/getCredentialsTypeCandidates';


//角色管理
//获取角色列表
const getRoleList = '/role/getRoleList';

//获取角色类型
const getRoleCategoryList = '/role/getRoleCategoryList';
//保存 or 修改
const saveOrUpdateRole = '/role/saveOrUpdate';
//删除角色
const del = '/role/del';
//获取角色功能权限
const getRoleFunction = '/role/getRoleFunction';
//获取菜单页面权限
const getPageList = '/functionInfo/getPageButtonList';
//获取页面按钮权限
const updateRoleFunction = '/role/updateRoleFunction';
//获取页面查看范围
const roleScopeCandidates = '/role/roleScopeCandidates';
// 删除用户
const userInfoGetTree = '/userInfo/delete';
// 根据角色Id查询对应的影院ID
const finAll = '/role/cinema/finAll';
// 用户启用禁用
const disabled = '/userInfo/disabled';
// 修改密码
const updatePwd = '/userInfo/updatePwd';
// 获取当前登录的用户信息
const userInfo = '/userInfo/';
// 影院基本信息查询
const cinemaPage ='/cinema/page';
const cinemaPagetmsPage ='/cinema/tmsPage';

// 设备
const device = '/device/page';
// 影厅查询
const hall ='/hall/page';
// 字典表根据类型查询
const byType ='/codeList/byType';
// 获取影院详细信息和Tms信息
const findByPropertyCode = '/cinema/findByPropertyCode';
// 数据权限页面的电影列表的查询
const byHeadquartersCode = '/cinema/byHeadquartersCode';
// 影厅设备监控详情
const detail ='/device/detail';
// 路由
const getMenusByLoginUser ='/menu/getMenusByLoginUser';
// home
const home = '/home/';
const workState ='/device/workState';
// 新增
// 对应广告商
const holderList = '/headquarters/holder/list';
//新总部接入
const creationAdmin = '/userInfo/creationAdmin';
// 影院接入list
const bindCinemaList = '/headquarters/bindCinemaList';
// 影院排期
const scheduleList = '/schedule/list';
// 总部列表
const headquartersPage = '/headquarters/headquartersPage'
const bindCinema = '/headquarters/bindCinema'
//影院排期详情
const getCheckResult = '/schedule/getCheckResult'
const analysisExcel = '/headquarters/analysisExcel'
const downloadExcel = '/headquarters/downloadExcel'
const noBindCinemaList = '/headquarters/noBindCinemaList'
const cancelBind = '/headquarters/cancelBind'
const updateInfo ='/headquarters/updateInfo'
//总部确认列表
const flmList = '/flm/list'
// 故障工单列表
const workOrderList = '/workOrder/list';

const cinemaUpdate ='/role/cinema/update';
// 工单详情
const workOrderById = '/workOrder/byId';
const hallGetList = '/hall/getList'
const deviceGetList = '/device/getList';
//批量调整工单状态
const workOrderUpdateState= '/workOrder/updateState';
const workOrderSave = '/workOrder/save';
//.查询FLM任务列表
const flmListTask = '/flm/list-task';
//重新同步数据
const flmRepeatSync = '/flm/repeat-sync';
//查询flm详情接口
const flmDetail ='/flm/detail';
//确认flm修改
const flmConfirm = '/flm/confirm';
//查看工单日志
const selectLog = 'workOrder/selectLog';
//重置密码
const resetPwd = 'userInfo/resetPwd';
// TMS报障
const malfunctionPage = 'malfunction/page';
const malfunctionDevicePage = '/malfunction/devicePage';
//影厅设备监控
const monitoring ='/hall/monitoring';
//地图
const homeMap = '/home/map';
//放映状态监控
const showState = '/device/showState';
const addSystemUser = 'userInfo/addSystemUser';
const selectShowLog = '/device/selectShowLog';
const deviceGetOleList = '/malfunction/getOleList';
const flmDetailHall = '/flm/detail-hall';
const logPage = '/log/page';
const updatePredict = '/workOrder/updatePredict';
const codeListbyType = '/codeList/byType';
const selectPredict = '/workOrder/selectPredict ';
const getRoleListByHeadquartersCode = '/role/getRoleListByHeadquartersCode'
let apiConfig = {
    getColumnSettings,
    getSystemSetting,
    getMenuUrl,
    serviceUrl,
    getFileServerStatus,
    getUserUrl,//获取用户信息
    cookieMissUrl,
    Screen,//整理编目档号筛查
    captcha,//获取验证码
    passwordPublicKey,// 获取加密公钥
    login,// 登录接口
    logout,// 登录退出接口
    dicFindList,//查询字典列表
    dicgetDictListByDictId,//根据id查询字典项
    dicSave,//保存数据字典值
    dicDataSave,//保存字典值
    dicDataUpSave,//新增保存字典值
    dicDatadelete,//删除字典值
    dicDelete,//删除数据字典
    getUserList,//系统配置  用户管理列表
    roleSelect,//系统配置  用户管理  用户角色下拉选数据
    getUserById,//系统配置  用户管理  获取用户信息
    updateUserRole,//系统配置  用户管理  修改用戶角色
    saveSystemUser,// 添加用户 new
    getCredentialsTypeCandidates, // 获取证件类型 new
    getRoleList,
    getRoleCategoryList,// 获取角色类型
    saveOrUpdateRole,//保存 or 修改
    del,//删除角色
    getRoleFunction,//获取角色功能权限
    getPageList,//获取菜单页面权限
    updateRoleFunction,//获取页面按钮权限，
    userInfoGetTree, //删除用户
    finAll,  //根据角色Id查询对应的影院ID
    disabled,     // 用户启用禁用
    updatePwd, //修改密码
    userInfo, //获取当前登录的用户信息
    cinemaPage, //影院基本信息查询
    cinemaPagetmsPage,
    device, // 设备
    hall,// 影厅查询
    byType, // 字典表根据类型查询
    findByPropertyCode, //获取影院详细信息和Tms信息
    byHeadquartersCode, //数据权限页面的电影列表的查询
    detail,//影厅设备监控详情
    getMenusByLoginUser,
    home,
    workState,
    holderList,// 对应广告商
    creationAdmin,//新总部接入
    bindCinemaList, //影院接入list
    scheduleList, //影院排期
    headquartersPage, //总部列表
    bindCinema,
    getCheckResult, //影院排期详情
    analysisExcel,
    downloadExcel,
    noBindCinemaList,
    cancelBind,
    updateInfo,
    flmList, //总部确认列表
    workOrderList, //故障工单列表
    cinemaUpdate, //
    workOrderById, //工单详情
    hallGetList,
    deviceGetList,
    workOrderUpdateState,//批量调整工单状态
    workOrderSave,
    flmListTask, //.查询FLM任务列表
    flmRepeatSync, //重新同步数据
    flmDetail, //查询flm详情接口
    flmConfirm, //确认flm修改
    selectLog, //查看工单日志
    resetPwd, //重置密码
    malfunctionPage, //TMS报障
    malfunctionDevicePage,
    monitoring,  //影厅设备监控
    homeMap, //地图
    showState,
    addSystemUser,
    selectShowLog,
    deviceGetOleList,
    flmDetailHall,
    logPage,
    updatePredict,
    codeListbyType,
    selectPredict,
    getRoleListByHeadquartersCode
};
export default apiConfig;
